package com.woniuxy.cloud.api;

import com.woniuxy.cloud.api.param.BackDepositParam;
import com.woniuxy.cloud.demo.Result;
import com.woniuxy.cloud.api.param.DepositReduceParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author 周川雄
 * @date 2022/2/11 15:25
 */
@FeignClient(value = "deposit")
public interface DepositQueryAPI {

    /**
     * 更改订单状态，该接口不能使用，与业务不符合
     * @param id
     * @return
     */
    @PostMapping("/payDeposit/{id}")
    Result payDeposit(@PathVariable Integer id);

    /**
     * 系统扣钱
     * @param param
     * @return
     */
    @PutMapping("/penalty")
    Result<String> penalty(@RequestBody @Validated DepositReduceParam param);
}
